arm: semihosting: get rid of forward declarations
authorLinus Walleij <[email protected]>
Mon, 15 Dec 2014 10:06:05 +0000 (11:06 +0100)
committerTom Rini <[email protected]>
Mon, 29 Dec 2014 12:44:06 +0000 (07:44 -0500)
commit9be5c661beecdb8a9d90ab4869ddb501b4990dd9
tree0a7926aa2a00ae9d9931e1476deb5cb49ada848b
parent4e1ef15091b6f42ac13c22e3acc45a9bd9cce852
arm: semihosting: get rid of forward declarations

By rearranging the functions in the semihosting code we can
avoid forward-declaration of the internal static functions.
This puts the stuff in a logical order: read/open/close/len
and then higher-order functions follow at the end.

Cc: Darwin Rambo <[email protected]>
Cc: AKASHI Takahiro <[email protected]>
Cc: Mark Hambleton <[email protected]>
Cc: Tom Rini <[email protected]>
Acked-by: Steve Rae <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
arch/arm/lib/semihosting.c